<template>
  <div> 
    <el-table align="center" :data="orderData" style="width: 100%">
        <el-table-column prop="realName" label="用户昵称">
        </el-table-column>
        <el-table-column prop="goodName" label="商品名称">
        </el-table-column>
        <el-table-column prop="createTime" label="订单时间">
        </el-table-column>
    </el-table>
  </div>
</template>

<script>
import Service from '@/service/request'

export default {
    data() {
        return {
          orderData: []
        }
    },
    async created() {
      this.orderData = await Service.getAllOrderData()
      console.log('res >>>>', this.orderData)
    }
}
</script>

<style>

</style>